package com.lebronxin.leojcodesandbox.security;

import java.security.Permission;

/**
 * @version 1.0
 * @author 陈鑫
 * 禁用所有权限安全管理器
 */
public class DenySecurityManager extends SecurityManager {

    //检查所有权限
    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常");
    }
}
